package com.example.login.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.dtos.ResponseResult;
import com.example.login.entity.Employee;


public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param
     * @param employee
     * @return
     */
    ResponseResult<Employee> getEmployee(Employee employee);

    /**
     * 退出
     * @return
     */
    void logout();

    /**
     * 查询员工信息
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    ResponseResult<Page> pageInfo(Integer page, Integer pageSize, String name);

    /**
     * 添加员工
     * @param employee
     * @return
     */
    ResponseResult addEmployee(Employee employee);

    /**
     * 数据回显
     * @param id
     * @return
     */
    ResponseResult employee(Long id);

    /**
     * 修改状态
     *
     * @param
     * @return
     */
    ResponseResult updateStatus(Long id);

    /**
     * 删除
     * @param ids
     * @return
     */
    ResponseResult deleteEmployees(Long[] ids);
}
